package com.ygqh.baby.service;

import java.util.List;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgStock;
import com.ygqh.baby.po.YgSyncStockLog;

public interface YgSyncStockLogService {

	List<YgSyncStockLog> find();

	int findCount();

	YgSyncStockLog findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int save(YgSyncStockLog ygSyncStockLog);

	int update(YgSyncStockLog ygSyncStockLog);

	int saveOrUpdate(YgSyncStockLog ygSyncStockLog);

	ResultSet<YgSyncStockLog> search(QueryInfo queryInfo, String q);

	/**
	 * 
	 * @param oldS
	 *            ygStock JSON串
	 * @param newS ygStock JSON串
	 * @param hanlder
	 * @return
	 */
	int addSyncStockLog(String oldS, String newS, String hanlder,String remark);

	int addSyncStockLog(List<YgStock> stockList, String hanlder, String remark);

}
